#!/bin/bash



name=('tom' 'jarry' 'harry' 'barry')

for i in 0 1 2 3
  do
    echo ${name[$i]}
done

for i in `seq 0 1 3`
 do
   read -p "name": name[$i]
done

echo ${name[$i]}
echo ${name}
echo ${name[@]}

echo "点击Enter按钮进行退出"
read
exit